#pragma once

#include <iostream>
#include <string>
using namespace std;

class KMPAlgorithm
{
	
private:
	void PrintNext();
	void Match();

public:
	KMPAlgorithm(void);
	~KMPAlgorithm(void);
	void getNextArray();

	string matchString;
	int next[50];
	string allText;

};

